<?php 
	 $settings = AdminSettings::first();
	 $userAuth = Auth::user(); 
	 
	 // TEAMS Membership Check
	   if( Auth::check() && Auth::user()->type_account == 3 ) {
	   	
		$_dateNow   = date('Y-m-d G:i:s');
		   	
		$teamMembershipStatus = DB::table('paypal_payments_teams')
		->where('user_id', Auth::user()->id)
		->where('expire','>',$_dateNow)
		->where('payment_status', '=', 'Completed')
		->orderBy('id', 'desc')
		->first(); 
	   }
	 
 ?>

<?php $__env->startSection('jumbotron'); ?>

<?php if( !Auth::check()): ?>
 <div class="jumbotron index-header">
      <div class="container wrap-jumbotron">
        <h1 class="w_text"><?php echo $settings->welcome_text; ?></h1>
        <p class="subtitle"><?php echo $settings->welcome_subtitle; ?></p>
      
      <?php if( $settings->registration_active == '1' ): ?>  
        <p><a href="<?php echo URL::to('/join'); ?>" class="btn btn-lg btn-success no-shadow btn-join">Join now is Free!</a></p>
      <?php endif; ?>
      </div>
    </div>
    <?php endif; ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?> 
     	
<!-- Col MD -->
<div class="col-md-12">	
	
	<?php if(  Auth::check() && !isset( $teamMembershipStatus ) && Auth::user()->type_account == 3 ): ?>
	<div class="alert alert-warning btn-sm margin-zero text-center" role="alert">
		  	 	<?php echo Lang::get('misc.membership_expired_teams'); ?> <a href="<?php echo URL::to('renew/membership'); ?>" class="btn btn-success btn-xs"><?php echo Lang::get('misc.renewed_for_one_year'); ?></a>
		  	 </div>
		  	 <?php endif; ?>
	
			<?php if(Session::has('success_verify')): ?>
			<div class="alert alert-success btn-lg text-center" role="alert">
				<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            		<?php echo Session::get('success_verify'); ?>

            		</div>
            	<?php endif; ?>
            	
            	<?php if(Session::has('welcome')): ?>
			<div class="alert alert-success btn-lg text-center" role="alert">
				<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            		<?php echo Session::get('welcome'); ?>

            		</div>
            	<?php endif; ?>
            	
<?php if( $data->count() != 0 ): ?>
		
	<?php echo $__env->make('includes.nav-pills', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

<?php endif; ?>
	
	<?php echo $__env->make('includes.shots', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
	
	<?php if( Auth::check() && $data->count() == 0 ): ?>
	
	<div class="no-following-yet">
		<h2 class="margin-top-none text-center">- <?php echo Lang::get('misc.no_following_user'); ?> -</h2>
	    <h5 class="btn-block text-center"><?php echo Lang::get('misc.suggest_following'); ?></h5>
	    <span class="btn-block text-center">
	    	<a href="<?php echo URL::to('latest'); ?>" class="btn btn-sm btn-success shadow-inset"><?php echo Lang::get('misc.explore'); ?> <i class="fa fa-search"></i></a>
	    	<a href="<?php echo URL::to('designers'); ?>" class="btn btn-sm btn-danger shadow-inset"><?php echo Lang::get('misc.designers'); ?> <i class="icon-user"></i></a>
	    </span>
	 </div>
	 
	<?php elseif( !Auth::check() && $data->count() == 0 ): ?>
	
	<div class="btn-block text-center">
	    	<i class="icon-quill ico-no-result"></i>
	    </div>
	    
	<div class="no-following-yet">
			<h2 class="margin-top-none text-center">- <?php echo Lang::get('misc.no_shots_published'); ?> -</h2>
		</div>
	  	
	<?php endif; ?>
	
</div><!-- /COL MD -->
<?php $__env->stopSection(); ?>



<?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>